package metrics

import (
	"github.com/arl/statsviz"
	"log"
	"net/http"
	"strconv"
)

func Serv(port int) {
	mux := http.NewServeMux()
	statsviz.Register(mux)

	go func() {
		log.Println(http.ListenAndServe("localhost:"+strconv.Itoa(port), mux))
	}()
}
